package com.liyunc.demo.custom.fileupload.utils;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PushbackInputStream;

public class StreamTool {

    public static void save(File file, byte[] data) throws IOException {
        FileOutputStream outputStream = new FileOutputStream(file);
        outputStream.write(data);
        outputStream.close();
    }

    public static String readLine(PushbackInputStream inputStream) throws IOException {
        char[] buffer = new char[128];
        int size = buffer.length;
        int offset = 0;
        int c;

        return null;
    }
}
